import request from '@/utils/request'
import type { Work, CreateWorkRequest, UpdateWorkRequest, PaginatedResponse, ApiResponse } from '@/types'

// 获取艺人作品列表
export const getArtistWorks = async (artistId: string): Promise<Work[]> => {
  const response = await request.get(`/client/artists/${artistId}/works`)
  return response.data?.items || []
}

// 获取作品详情
export const getWorkDetail = async (workId: string): Promise<Work> => {
  const response = await request.get(`/client/works/${workId}`)
  return response.data
}